{{if $msgs|@count>0}}
<div id="pop_up" title="Message" >
    <ul id="pop_up_content" style="visibility: hidden">
        {{foreach from=$msgs item=m}}
            <li>{{$m}}</li>
        {{/foreach}}
    </ul>
</div>
{{/if}}

{{if $msgs|@count>0}}
<script type="text/javascript">
    $(document).ready(function() {
        $("#pop_up_content").css('visibility', 'visible');
        $( "#pop_up" ).dialog({modal:true});
    });
</script>
{{/if}}